package com.aispeech.asr.comm.enums;

public enum APICode {
    OK(0, ""),
    INTERNAL_ERROR(1, "Internal Error"),
    BAD_REQUEST(400, ""),
    BAD_CREDENTIALS(403, "Bad Credentials"),

    NOT_FOUND(201, "Not Found"),
    NOT_FINISHED(202, "Not Finished"),
    INTERRUPTED(251, "interrupted");

    private int code;
    private String message;

    APICode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
